#pragma once

#include <pthread.h>

class Mutex
{
public:
	Mutex();
	virtual ~Mutex();

	int Lock();
	int Unlock();
	bool TryLock();
	pthread_mutex_t* Get() { return &_mutex; }

private:
	pthread_mutex_t _mutex;
};